<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<jsp:include page="template-top.jsp"/>
<table>
<tr>
    	<td><font size="6">Search Courses</font></td>
    	<td><font size="4"></font></td>
    </tr>
    <tr>
    	<td><font size="5"></font></td>
    	<td><font size="4"></font></td>
    </tr>
</table>    
<form name="searchcourses" action="search-courses.do" method="post">
<table>

	
	<tr>
	<td></td>
    	<td><font size="4">Course Name</font></td>
    	<td><font size="4"><input type="text" name="courseName" size="20" value="" /></font></td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;</td>
	    <td><font size="4">Course Number</font></td>
	    <td><font size="4"><input type="text" name="number" size="20" value="" /></font></td>
    </tr>
  
    <tr>
    <td>&nbsp;</td>
	    <td><font size="4">Instructor</font></td>
	    <td><font size="4"><input type="text" name="instructor" size="20" value="" /></font></td>
    </tr>
    <tr>
    <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
	    <td><font size="4">Units</font></td>
	    <td><font size="4"><input type="text" name="units" size="20" value="" /></font></td>
    </tr>
    <tr>
    <td></td>
	    <td></td>
	    <td><font size="4"><input type="submit" value="Search" name="Search" /></font></td>
    </tr>
</table>
</form>
<table>
<c:forEach var="b" items="${result}">
  <form name="add" action="schedule.do" method="post">
     <input type="hidden" name="course" value="${b.id}"/>   
  <tr><td colspan="2"><a href="course.do?course=${b.id}">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;${b.courseName}</a></td>
           <td>
            <input type="submit" name="button" value="Add to Schedule"/></td></tr>
  <tr><td>&nbsp;&nbsp;&nbsp;</td><td class="comment">${b.majorNumber}- ${b.levelNumber} Units: ${b.unit}</td></tr>

        </form>
        
        
        

</c:forEach>
</table>




<jsp:include page="template-bottom.jsp"/>
